<div class="page-products">
   <div class="page-title">
      <i class="icon-custom-left"></i>
      <h3>Nhóm <span class="semi-bold">Tài Khoản</span></h3>
   </div>
   <div class="row">
      <div class="col-md-12">
         <div class="grid simple ">
            <div class="grid-body no-border">
               <h3>Danh Sách  <span class="semi-bold">Nhóm</span></h3>
               <div class="col-md-2">
                  <div class="btn-group">
                     <a class="btn btn-primary dropdown-toggle btn-demo-space" data-toggle="dropdown" href="#">Chọn Trạng Thái<span class="caret"></span> </a>
                     <ul class="dropdown-menu">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Deactive</a></li>
                        <li class="divider"></li>
                        <li><a href="#">All</a></li>
                     </ul>
                  </div>
               </div>
               <div class="col-md-4">
                  <div class="dataTables_filter" id="example_filter">
                     <label>Tìm Kiếm: <input type="text" aria-controls="example" class="input-medium"><button class="btn btn-primary" style="margin-left:12px" id="test2">Tìm</button></label>
                  </div>
               </div>
               <div class="col-md-4">
                  <a href="index.php?com=com_user&view=group&task=create"class="btn btn-primary" style="margin-left:12px" id="test2">Thêm Nhóm</a>
               </div>
               <table class="table no-more-tables">
                  <thead>
                     <tr>
                        <th style="width:1%">
                           <div class="checkbox check-default">
                              <input id="checkbox10" type="checkbox" value="1" class="checkall">
                              <label for="checkbox10"></label>
                           </div>
                        </th>
                        <th style="width:10%">Tên Nhóm</th>
                        <th style="width:10%">Nhóm Cha</th>
                        <th style="width:10%">Phân Quyền</th>
                        <th style="width:10%">Trạng Thái</th>
                        <th style="width:10%">Tác Vụ</th>
                     </tr>
                  </thead>
                  <tbody>
                  <?php foreach ($this->results['groups'] as $result){?>
                     <tr>
                        <td class="v-align-middle">
                           <div class="checkbox check-default">
                              <input id="checkbox11" type="checkbox" value="<?php echo $result->getId();?>">
                              <label for="checkbox11"></label>
                           </div>
                        </td>
                        <td class="v-align-middle"><a href="index.php?com=com_user&view=group&id=<?php echo $result->getId(); ?>&task=update"><?php echo $result->getTitle();?></a></td>
                        <td class="v-align-middle"><span class="muted"><?php echo $result->getParentId();?></span>
                        </td>
                        <td><span class="muted">Quản Lý</span>
                        </td>
                        <td class="v-align-middle">
                           <span class="label label-success"><?php if($result->getStatus()==1) echo"Active"; else echo"Deactive";?></span>
                        </td>
                        <td>
                           <div class="btn-group">
                              <a id="btn_update" class="btn btn-mini btn-primary" href="index.php?com=com_user&view=group&id=<?php echo $result->getId(); ?>&task=update"><i class="fa fa-edit"></i></a>
                           <form method="post" style="float:left">
                              <input type="hidden" name="id" value="<?php echo $result->getId();?>">
                              <input type="hidden" name="task" value="delete">
                              <button class="btn btn-mini btn-primary" onclick=" return confirm('Bạn có muốn xóa group <?php echo $result->getTitle();?> ?')"><i class="fa fa-trash-o"></i></button>
                           </form>
                           </div>
                        </td>
                     </tr>
                  <?php }?>
                  </tbody>
               </table>
               <div class="btn-group">
                  <button class="btn btn-white" type="button"><i class="fa fa-chevron-left"></i></button>
                  <button class="btn btn-white active">1</button>
                  <button class="btn btn-white">2</button>
                  <button class="btn btn-white">3</button>
                  <button class="btn btn-white">4</button>
                  <button class="btn btn-white" type="button"><i class="fa fa-chevron-right"></i> </button>
               </div>
               <div class="col-md-4">
                  <div class="btn-group">
                     <a class="btn btn-primary dropdown-toggle btn-demo-space" data-toggle="dropdown" href="#">Tác Vụ<span class="caret"></span> </a>
                     <ul class="dropdown-menu">
                        <li><a href="#">Active</a></li>
                        <li><a href="#">Deactive</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Delete</a></li>
                     </ul>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>